package com.gwcslife.insuranceservice.controller;

import com.alibaba.nacos.api.exception.NacosException;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@Controller
@RequestMapping("/dis")
public class DiscoveryController {

    @Value("${server.port}")
    private String port;
    @RequestMapping(value = "/get", method = RequestMethod.GET)
    @ResponseBody
    public String get(){
        System.out.println(">>>>>"+port);
        return port;
    }
}
